package com.rc.saas.tenant.vo.ugs;

import java.util.Date;

/**
 * @author frog
 * @date 2021/4/7
 */
public class LevelDiscountStationResultVo {
    private String tenantCode;
    private Long elecStationId;
    private String stationName;
    private String bizType;
    private String status;
    private Date beginTime;
    private Date endTime;
    private String validStatus;

    public String getValidStatus() {
        Date date = new Date();
        if (getBeginTime() != null && getEndTime() != null) {
            if (beginTime.getTime() > date.getTime()) {
                return "未开始";
            } else if (beginTime.getTime() < date.getTime() && endTime.getTime() > date.getTime()) {
                return "进行中";
            } else if (endTime.getTime() < date.getTime()) {
                return "已结束";
            }
        }
        return null;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getElecStationId() {
        return elecStationId;
    }

    public void setElecStationId(Long elecStationId) {
        this.elecStationId = elecStationId;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setValidStatus(String validStatus) {
        this.validStatus = validStatus;
    }
}
